package com.okilo.online.app.pet

import com.okilo.online.app.common.OkiloComPet
import com.okilo.online.app.configs.OkiloConfigs
import com.okilo.online.app.request.IHttpCallback
import com.okilo.online.app.pet.view.IOkiloProcess
import org.json.JSONObject

/**
 * 进件信息
 */
class OkiloProcessPet(private val iView: IOkiloProcess?): OkiloComPet(iView) {

    /**
     * 提交进件信息
     */
    fun subOkiloProcessRequest(params: JSONObject){
        val httpUrl = OkiloConfigs.gOkiloRequestUrl()
        doPostAction(httpUrl, params,object : IHttpCallback {
            override fun onRequestSuccess(data: JSONObject) {
                iView?.sOkiloProcessSubmitCallback()
            }
            override fun onRequestError(error: JSONObject) {
            }
            override fun onRequestFinish() {
            }
        })
    }
}